package cn.zzszxyy.hr.repository;

import cn.zzszxyy.hr.model.RoleMenuEntity;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

import java.util.List;

/**
 * 作者:张伟
 * <p>
 * 联系:adamzzww@163.com
 * 时间:2016-11-28
 * 说明:角色-权限对应表
 */
public interface RoleMenuRepository extends JpaRepository<RoleMenuEntity, Integer>, JpaSpecificationExecutor<RoleMenuEntity> {

    Long deleteByRoleId(Integer roleId);

    List<RoleMenuEntity> findByRoleId(Integer roleId);

}
